<link href="<?php echo $this->webroot ?>/theme/default/images/article.css" rel="stylesheet" type="text/css" media="screen" />
<div id="content">
        <div id="tagBar"><?php echo $tagname ?><!-- 热门标签： <a href="#">君悦</a><a href="#">香必飘</a> --></div>
        <?php foreach ($articles as $article): ?>
        <div class="entry">
            <h2><a href="<?php echo url_for('article/show/id/'.$article->getId()) ?>"><?php echo $article->getTitle() ?></a></h2>
            <div class="entryHeader">作者：<span class="author"><a href="#"><?php echo $article->getAuthor() ?></a></span>&nbsp;&nbsp;&nbsp;&nbsp;<span><?php echo $article->getCreated_at() ?></span></div>
            <div class="entryBody">
                <?php echo $article->getDescription() ?>
                <span class="more"><a href="<?php echo url_for('article/show/id/'.$article->getId()) ?>">阅读全文»</a></span>
            </div>
            <div class="entryFooter">
                <span><a href="#">评论(69)</a></span><span><a href="#">阅读(<?php echo $article->getClick() ?>)</a></span><span class="tag">标签：
                <?php foreach ($article->getTagsArr() as $tag): ?>
                <a href="<?php echo url_for('article/tag/'.$tag) ?>"><?php echo $tag ?></a>
                <?php endforeach; ?>
                </span>
            </div>
        </div>
        <?php endforeach; ?>
        <div id="tagBar"><?php echo $pager->GetNavigation() ?></div>
    </div>
    <div id="outerSidebar">
        <div id="sidebarL">
            <div id="focus" class="module">
                <h2>[<?php echo $tagname ?>推荐]</h2>
                <ul>
                <?php foreach ($recommends as $recommend): ?>
                    <li><a href="<?php echo url_for('article/show/id/'.$recommend->getId()) ?>"><?php echo $recommend->getTitle() ?></a></li>
                <?php endforeach; ?>
                </ul>
            </div>
            <div id="nComments" class="module">
                <h2>[<?php echo $tagname ?>评论]</h2>
                <ul>
                <?php foreach ($comments as $comment): ?>
                  <li>
                    <span class='author'><?php echo $comment->getName() ?>：</span><a href='<?php echo url_for('article/show/id/'.$comment->getArticle_id()) ?>#cmt'><?php echo $comment->getContent() ?></a>
                  </li>
                <?php endforeach; ?>
                </ul>
            </div>
        </div>
    </div>